function current() {
    var now = new Date() ;
    var year = now.getFullYear()
    var month = now.getMonth() + 1 ;
    var day = now.getDate() ;
    var hour = now.getHours()
    var minute = now.getMinutes()
    var second = now.getSeconds()
    var nowStr = year + "-"
        + (month<10 ? '0'+ month : month) + '-' + (day<10 ? '0'+day : day) + " "
        + (hour<10 ? '0'+hour : hour) + ':' + (minute<10 ? '0'+minute : minute) + ':'
        + (second<10 ? '0'+second : second)  ;
    return nowStr ;
}
const baseUri = "http://127.0.0.1:8080/news"
// 将当前js声明的函数与常量导出
export default {
    current ,
    baseUri
}
// vue页面中导入 global.js后，可以使用当前函数和常量、


